<?php

class Application_Form_MMRProyectos extends Sgit_Form
{

    public function init_form()
    {
        
         
    
         $pep=new Sgit_Form_Element_Select_Pep('id_pep');
         $pep->setLabel('PEP')->setRequired();
         $this->addElement($pep);
         
         $proyecto=new Zend_Form_Element_Text('nombre');
         $proyecto->setLabel('Proyecto')->setRequired();
         $this->addElement($proyecto);
         

         $adendum=new Zend_Form_Element_Radio('adendum');
         $adendum->addMultiOptions(array('S'=>'SI','N'=>'NO'))
             ->setLabel('Adendum Firmado')
             ->setSeparator(' ')
             ->setRequired();
         $this->addElement($adendum); 
         
         $tramo=new Zend_Form_Element_Radio('tramo_proyecto');
         $tramo->addMultiOptions(array('A'=>'A','C'=>'C'))
             ->setLabel('Tramo')
             ->setSeparator(' ')
             ->setRequired();;
        
         $this->addElement($tramo); 
         
         
         
         $this->setElementDecorators(array(
		    'ViewHelper',
		   'Errors',
		    array(array('data' => 'HtmlTag'),	array('tag' => 'td', 'class' => 'element')   ),
		    array('Label', array('tag' => 'td')),
		    array(array('row' => 'HtmlTag'), array('tag' => 'tr')),
         ));
       
       
   

        
    }
}
